home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CDTV / cdtvtools-20 / endrun / endrun.doc < prev    next >
Encoding:
Text File  |  1992-02-06  |  1.6 KB  |  50 lines

  1. TABLE OF CONTENTS
  2.  
  3. EndRun
  4. EndRun                                                                 EndRun
  5.  
  6.    NAME
  7.     EndRun
  8.  
  9.    SYNOPSIS
  10.     EndRun [command] - Execute the command given with workbench closed
  11.  
  12.    FUNCTION
  13.     This CLI-only command can be used in the startup-sequence to
  14.     execute the command given after the workbench screen has been
  15.     closed down.  If running under 2.0 and the workbench screen has
  16.     not opened yet, it will just execute the command.
  17.  
  18.    INPUTS
  19.     [command] is the command line to be executed.  The first
  20.     word in the command will be the load file as passed to LoadSeg().
  21.     If it does not exists, EndRun will just halt.
  22.  
  23.    RESULTS
  24.     The command given is run with the workbench screen closed.
  25.  
  26.    EXAMPLE
  27.     ; startup-sequence for SnakePit
  28.     EndRun SnakePit datafile
  29.     ; Note that we run the snakepit program with the
  30.     ; argument "datafile" which is passed to the program.
  31.  
  32.    NOTES
  33.     If run under 2.0, this may end up doing almost nothing...
  34.  
  35.     The [command] will not have any functioning stdin/stdout.
  36.     stdin/stdout will be connected to NIL:
  37.  
  38.     EndRUN *MUST* have V1.2 or greater kickstart.  It also *MUST*
  39.     be executed from a CLI.  (It does not check for workbench)
  40.  
  41.     EndRun has a maximum COMMAND name (first word in the command line)
  42.     of 64 characters.  It will not work correctly with more.
  43.     The rest of the command line can be as long as you wish.
  44.  
  45.     When the program exits, endrun will just halt.  It will go
  46.     into a dead loop.  However, applications run with EndRun
  47.     are usually of the type the user uses with a reboot as this
  48.     utility is design for use in startup sequences.
  49.  
  50.